package com.example.chao.myphotosearch.api;

import com.example.chao.myphotosearch.bean.ImageJoy;
import com.example.chao.myphotosearch.bean.RecommendList;
import com.example.chao.myphotosearch.bean.SosoImgResult;

import retrofit.http.GET;
import retrofit.http.Query;
import rx.Observable;

/**
 * Created by chao on 2016/3/29.
 */

public interface ApiService {
//    @Headers("Cache-Control: public, max-age=3600")
    @GET("test1")
    Observable<RecommendList> getHeadList(@Query("start") int start, @Query("end") int end);

    @GET("http://pic.sogou.com/pics")
    Observable<SosoImgResult> getImageList(

            @Query("reqType") String ajax,
            @Query("reqFrom") String result,
            @Query("query") String word,
            @Query("start" ) int page);

    @GET("http://api.laifudao.com/open/tupian.json")
    Observable<ImageJoy[]> getImageJoy();
}
